<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>部门管理</title>
    <%@ include file="/WEB-INF/views/common/common.jsp" %>
    <script type="text/javascript" src="/static/js/system/department.js"></script>
</head>
<body>
<%--列表--%>
<table id="dept_datagrid"></table>
<%--列表顶部工具栏--%>
<div id="dept_toolbar">
    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:true" data-cmd="add">添加</a>
    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-edit',plain:true" data-cmd="edit">编辑</a>
    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-remove',plain:true" id="change_btn"
       data-cmd="changeState">正常</a>
    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-reload',plain:true" data-cmd="reload">刷新</a>
</div>
<%--保存/编辑 对话框--%>
<div id="dept_dialog">
    <form method="post" id="dept_form">
        <input type="hidden" name="id">
        <table align="center" style="margin-top:15px">
            <tr>
                <td>编码</td>
                <td><input class="easyui-textbox" name="sn"></td>
            </tr>
            <tr>
                <td>部门名称</td>
                <td><input class="easyui-textbox" name="name"></td>
            </tr>
            <tr>
                <td>部门经理</td>
                <td><input class="easyui-combobox" name="manager.id" data-options="
                                            valueField: 'id',
                                            textField: 'realName',
                                            panelHeight: 'auto',
                                            url:'/employee/Managers'"></td>
            </tr>
            <tr>
                <td>上级部门</td>
                <td><input class="easyui-combobox" name="parent.id" data-options="
                                            url:'/department/depts',
                                            valueField: 'id',
                                            textField: 'name',
                                            panelHeight: 'auto'"
                ></td>
            </tr>

        </table>
    </form>
</div>

<%--保存/编辑 对话框 底部工具栏 --%>
<div id="dialog_buttons">
    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-save',plain:true" data-cmd="save">保存</a>
    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-cancel',plain:true" data-cmd="cancel">关闭</a>
</div>
</body>
</html>